//
//  DECXLogoutViewController.m
//  DECXInStore
//
//  Created by 程强 on 15/12/21.
//  Copyright © 2015年 程强. All rights reserved.
//

#import "DECXLogoutViewController.h"

@interface DECXLogoutViewController ()

@end

@implementation DECXLogoutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    MyUser;
    self.userNameLbl.text = user.name;
}
- (IBAction)logout:(id)sender
{
    [DECXGlobal shareInstance].user = nil;
    [DECXGlobal shareInstance].loginStatus = NO;
    [DECXGlobal shareInstance].productLogo = nil;
    [DECXGlobal shareInstance].productProve = nil;
    [self.navigationController popViewControllerAnimated:YES];
    if (self.logoutBlock) {
        self.logoutBlock();
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
